package com.py.androidUtils.UI;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.py.androidUtils.base.BaseActivity;
import com.readyidu.app.R;

public class MainActivity extends BaseActivity implements OnClickListener {
	private Button btnPicturesReleased, btnRichTextReleased, groupInfo, btnChat, btnArticleDetails;

	@Override
	protected void onCreate(Bundle arg0) {
		super.onCreate(arg0);
		setContentView(R.layout.activity_main);
		btnPicturesReleased = (Button) this.findViewById(R.id.btnPicturesReleased);
		btnPicturesReleased.setOnClickListener(this);
		btnRichTextReleased = (Button) this.findViewById(R.id.btnRichTextReleased);
		btnRichTextReleased.setOnClickListener(this);
		groupInfo = (Button) this.findViewById(R.id.groupInfo);
		groupInfo.setOnClickListener(this);
		btnChat = (Button) this.findViewById(R.id.btnChat);
		btnChat.setOnClickListener(this);
		btnArticleDetails = (Button) this.findViewById(R.id.btnArticleDetails);
		btnArticleDetails.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btnPicturesReleased:
			launcherActivity(MainActivity.this, PicturesReleasedActivity.class, null);
			break;
		case R.id.btnRichTextReleased:
			launcherActivity(MainActivity.this, RichTextReleasedActivity.class, null);
			break;
		case R.id.groupInfo:
			launcherActivity(MainActivity.this, GroupInfoActivity.class, null);
			break;
		case R.id.btnChat:
			launcherActivity(MainActivity.this, ChatDetailsActivity.class, null);
			break;
		case R.id.btnArticleDetails:
			launcherActivity(MainActivity.this, ArticleDetailsActivity.class, null);
			break;
		}
	}
}
